<?php

$arr = [1,24,44,66,88,99,101,102,167,177,999,1000];

$searchValue = 44;

echo search($searchValue, $arr);

function search($searchValue,$arr){

    return array_search($searchValue, $arr);

}



